package com.atguigu.common.cron.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @Author panghl
 * @Date 2021/3/12 10:24
 * @Description 前台分页对象
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value="FrontPageBean对象", description="返回json分页信息")
public class FrontPageBean {
    @ApiModelProperty(value = "分页数据")
    private List<?> records;
    @ApiModelProperty(value = "当前页")
    private Long current;
    @ApiModelProperty(value = "当前分页总页数")
    private Long pages;
    @ApiModelProperty(value = "每页显示条数")
    private Long size;
    @ApiModelProperty(value = "总数")
    private Long total;
    @ApiModelProperty(value = "是否有下一页")
    private Boolean hasNext;
    @ApiModelProperty(value = "是否有上一页")
    private Boolean hasPrevious;
}
